package com.itheima.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.itheima.pojo.OrderSetting;

import java.util.ArrayList;
import java.util.List;

public class OrderSettingListener extends AnalysisEventListener<OrderSetting> {
    public List<OrderSetting> getList() {
        return list;
    }

    private List<OrderSetting> list = new ArrayList<OrderSetting>();
    @Override
    public void invoke(OrderSetting orderSetting, AnalysisContext analysisContext) {
        list.add(orderSetting);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
